app.config(function ($stateProvider, $urlRouterProvider, $httpProvider) {
    //统一处理http网络请求异常
    $httpProvider.interceptors.push('httpErrorInterceptor');

    $stateProvider
        .state('param', {
            url: '/param',
            templateProvider: function ($templateCache) {
                return $templateCache.get('param.html');
            },
            controller: 'paramCtrl'
        })
        .state('status', {
            url: '/status',
            templateProvider: function ($templateCache) {
                return $templateCache.get('status.html');
            },
            controller: 'statusCtrl'
        });

    $urlRouterProvider.otherwise('/param');

});